package com.example.wechatdaka.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.wechatdaka.entity.Signin;
import com.example.wechatdaka.entity.SigninTotal;
import com.example.wechatdaka.mapper.SigninMapper;
import com.example.wechatdaka.service.SigninService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lx
 * @since 2020-11-30
 */
@Service
public class SigninServiceImpl extends ServiceImpl<SigninMapper, Signin> implements SigninService {
    @Autowired
    private SigninMapper signinMapper;
    @Override
    public List<Signin> querySigninMini(String lxUserNumber) {
        return signinMapper.querySigninMini(lxUserNumber);
    }

    @Override
    public IPage<Signin> querySignByCheckPage(Page page, String lxCheckworkId) {
        return signinMapper.querySignByCheckPage(page,lxCheckworkId);
    }

    @Override
    public IPage<Signin> querySignByCheckAndKeyword(Page page, String lxCheckworkId, String keyword) {
        return signinMapper.querySignByCheckAndKeyword(page,lxCheckworkId,keyword);
    }

    @Override
    public IPage<Signin> queryAllSignPage(Page page) {
        return signinMapper.queryAllSignPage(page);
    }

    @Override
    public IPage<Signin> querySignByUserIdPage(Page page, String lxUserId) {
        return signinMapper.querySignByUserIdPage(page,lxUserId);
    }

    @Override
    public IPage<SigninTotal> queryAllSignStatistics(Page page) {
        return signinMapper.queryAllSignStatistics(page);
    }

    @Override
    public IPage<SigninTotal> querySignStatisticsByUserIdPage(Page page, String lxUserId) {
        return signinMapper.querySignStatisticsByUserIdPage(page,lxUserId);
    }

    @Override
    public IPage<SigninTotal> querySignStatisticsByCheck(Page page, String lxCheckworkId) {
        return signinMapper.querySignStatisticsByCheck(page, lxCheckworkId);
    }

    @Override
    public IPage<SigninTotal> querySignStatisticsByKeywordPage(Page page, String keyword) {
        return signinMapper.querySignStatisticsByKeywordPage(page,keyword);
    }
}
